package com.topisv.tms.entity;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.fasterxml.jackson.annotation.JsonIgnore;

/**
 * 发货人信息表
 * 
 * @author Administrator
 * 
 */
@Entity
@Table(name = "consignor")
public class Consignor extends IdEntity {

	private static final long serialVersionUID = 1L;
	
	private String name;// '发件人姓名',
	private String mobile;
	private String phone;
	private String zipcode;
	private String province;
	private String city;
	private String district;
	private String address;
	private String ugc;// '快递自定义内容：多个用|分割',
	private String isDefault;// '是否默认发货人信息：0/1',
	private String status;// '状态：可选值:normal(正常),delete(删除)',
	private Customers customers;
	private Long customersId;
	private String depositoryName;//仓库地址
	private String salesRerurnMessage;//退货提醒
	private String salesRerurnAddress;//退货地址
	/**
     * 发件人所在国
     */
    private String sendCountry;

	public Consignor() {
	}
	
	public Consignor(Long id) {
		this.id = id;
	}
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getZipcode() {
		return zipcode;
	}

	public void setZipcode(String zipcode) {
		this.zipcode = zipcode;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getDistrict() {
		return district;
	}

	public void setDistrict(String district) {
		this.district = district;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getUgc() {
		return ugc;
	}

	public void setUgc(String ugc) {
		this.ugc = ugc;
	}

	@Column(name = "is_default")
	public String getDefaultStatus() {
		return isDefault;
	}

	public void setDefaultStatus(String isDefault) {
		this.isDefault = isDefault;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	@ManyToOne
    @JoinColumn(name = "customers_id")
	public Customers getCustomers() {
		return customers;
	}

	public void setCustomers(Customers customers) {
		this.customers = customers;
	}
	
	@Transient
	@JsonIgnore
	public Long getCustomersId() {
		return customersId;
	}

	public void setCustomersId(Long customersId) {
		this.customersId = customersId;
	}

	@Column(name="depository_name")
	public String getDepositoryName() {
		return depositoryName;
	}

	public void setDepositoryName(String depositoryName) {
		this.depositoryName = depositoryName;
	}
	@Column(name="sales_rerurn_message")
	public String getSalesRerurnMessage() {
		return salesRerurnMessage;
	}

	public void setSalesRerurnMessage(String salesRerurnMessage) {
		this.salesRerurnMessage = salesRerurnMessage;
	}
	@Column(name="sales_rerurn_address")
	public String getSalesRerurnAddress() {
		return salesRerurnAddress;
	}

	public void setSalesRerurnAddress(String salesRerurnAddress) {
		this.salesRerurnAddress = salesRerurnAddress;
	}
    public String getSendCountry() {
        return sendCountry;
    }

    public void setSendCountry(String sendCountry) {
        this.sendCountry = sendCountry;
    }
}
